package com.springboot.config.error;

/**
 * @description:
 * @author: zyj
 * @create: 2020-08-26 19:39
 **/
public class MySpringBootException extends Exception  {

    private String errorCode;
    private String errorMsg;

    public MySpringBootException(){}

    public MySpringBootException(String errorCode, String errorMsg){
        super(errorMsg);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
